package com.project.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 灾情防治--小班管理实体类
 */

@TableName("t_class")
public class ClassBean {
    @TableId(value = "pk_classId",type = IdType.AUTO)
    private int classId;
    /*** 小班名称 */
    @TableField("f_className")
    private String className;
    /*** 小班负责人 */
    @TableField("f_classMan")
    private String classMan;
    /*** 小班负责人电话 */
    @TableField("f_classManTel")
    private String classManTel;
    /*** 小班人员数量 */
    @TableField("f_classManNum")
    private String classManNum;
    /*** 小班创建时间 */
    @TableField("f_classTime")
    private LocalDate classTime = LocalDate.now();

    @TableField(exist = false)
    private AreaBean areaBean;

    public ClassBean() {
    }

    public ClassBean(String className, String classMan, String classManTel, String classManNum) {
        this.className = className;
        this.classMan = classMan;
        this.classManTel = classManTel;
        this.classManNum = classManNum;
    }


    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassMan() {
        return classMan;
    }

    public void setClassMan(String classMan) {
        this.classMan = classMan;
    }

    public String getClassManTel() {
        return classManTel;
    }

    public void setClassManTel(String classManTel) {
        this.classManTel = classManTel;
    }

    public String getClassManNum() {
        return classManNum;
    }

    public void setClassManNum(String classManNum) {
        this.classManNum = classManNum;
    }

    public LocalDate getClassTime() {
        return classTime;
    }

    public void setClassTime(LocalDate classTime) {
        this.classTime = classTime;
    }

    public AreaBean getAreaBean() {
        return areaBean;
    }

    public void setAreaBean(AreaBean areaBean) {
        this.areaBean = areaBean;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "classId=" + classId +
                ", className='" + className + '\'' +
                ", classMan='" + classMan + '\'' +
                ", classManTel='" + classManTel + '\'' +
                ", classManNum='" + classManNum + '\'' +
                ", classTime=" + classTime +
                ", areaBean=" + areaBean +
                '}';
    }
}
